package com.htstar.ovms.report.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.htstar.ovms.admin.api.entity.EtpInfo;
import com.htstar.ovms.report.api.req.ByMonthReportReq;
import com.htstar.ovms.report.api.req.ByMonthReportReqNoPage;
import com.htstar.ovms.report.api.req.ByMonthReportReqPage;
import com.htstar.ovms.report.api.vo.OnlineVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DeviceAlarmReportMapper {

    List<OnlineVO> onlineMonth(ByMonthReportReq req);

    Integer onlineCount(ByMonthReportReq req);

    Integer AllCarCount(ByMonthReportReq req);

    List<EtpInfo> getEtpName(Integer etpId);

    IPage<OnlineVO> onlineCarReport(ByMonthReportReqPage req);

    List<OnlineVO> onlineCarReportNoPage(ByMonthReportReq req);

    Integer onlineCountByLic(ByMonthReportReq req);

    Integer onlineCountNoPage(ByMonthReportReqNoPage allTotal);

    Integer AllCarCountNoPage(ByMonthReportReqNoPage allTotal);
}
